package com.gmu.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gmu.pojo.SampleUnitsActivities;
import com.gmu.mapper.SampleUnitsActivitiesMapper;
import com.gmu.pojo.TblDoctorAddress;
import com.gmu.service.SampleUnitsActivitiesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 采样单位活动表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Service
public class SampleUnitsActivitiesServiceImpl extends ServiceImpl<SampleUnitsActivitiesMapper, SampleUnitsActivities> implements SampleUnitsActivitiesService {
  @Autowired
  private SampleUnitsActivitiesMapper sampleUnitsActivitiesMapper;
    @Override
    public IPage<SampleUnitsActivities> getPages(int currentPage, int pageSize) {
        IPage<SampleUnitsActivities> page = new Page<>(currentPage, pageSize);
        return sampleUnitsActivitiesMapper.selectPage(page, null);
    }
}
